//
//  RssFeedViewController.h
//  Lettore RSS Feed
//
//  Created by Dario Trisciuoglio on 09/06/11.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//
#import "PullToRefreshTableViewController.h"
#import "AutoDownloadImageView.h"
#import "MTCostants.h"


@interface RssFeedViewController  : PullToRefreshTableViewController <NSXMLParserDelegate,UITableViewDelegate,UITableViewDataSource,AutoDownloadImageViewDelegate> {

	// parser XML
	NSXMLParser *rssParser;
	// elenco degli elementi letti dal feed
	NSMutableArray *elencoFeed;
	
	//variabile temporanea pe ogni elemento
	NSMutableDictionary *item;
	
	// valori dei campi letti dal feed
	NSString *currentElement;
	NSMutableString *currentTitle, *currentDate, *currentSummary, *currentSummaryLight, *currentLink, *currentImageUrl;
    
    // variabile dell'url del xml
    NSString *URLparser;

    UIView *spinnerView;
    UIActivityIndicatorView *spinner;
}

@property (nonatomic, retain) IBOutlet UIActivityIndicatorView *spinner;
@property (nonatomic, retain) IBOutlet UIView *spinnerView;

- (void)parseXMLFileAtURL:(NSString *)URL;
@end
